﻿
using System;
namespace HDModel
{
    /// <summary>
    ///HD_ADMIN数据实体
    /// </summary>
    [Serializable]
    public class HD_ADMIN
    {
        #region 变量定义
        ///<summary>
        ///自动编号
        ///</summary>
        private int _ID;
        ///<summary>
        ///用户名
        ///</summary>
        private string _NAME = String.Empty;
        ///<summary>
        ///
        ///</summary>
        private string _PASSWORD = String.Empty;
        ///<summary>
        ///管理员类型
        ///</summary>
        private string _TYPE = String.Empty;
        ///<summary>
        ///最后登陆IP
        ///</summary>
        private string _IP = String.Empty;
        ///<summary>
        ///注册时间
        ///</summary>
        private DateTime _PDATE;
        #endregion

        #region 构造函数
        ///<summary>
        ///管理员
        ///</summary>
        public HD_ADMIN()
        {
        }
        ///<summary>
        ///管理员
        ///</summary>
        public HD_ADMIN
        (
            int ID,
            string NAME,
            string PASSWORD,
            string TYPE,
            string IP,
            DateTime PDATE
        )
        {
            _ID = ID;
            _NAME = NAME;
            _PASSWORD = PASSWORD;
            _TYPE = TYPE;
            _IP = IP;
            _PDATE = PDATE;

        }
        #endregion

        #region 公共属性

        ///<summary>
        ///自动编号
        ///</summary>
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        ///<summary>
        ///用户名
        ///</summary>
        public string NAME
        {
            get { return _NAME; }
            set { _NAME = value; }
        }

        ///<summary>
        ///
        ///</summary>
        public string PASSWORD
        {
            get { return _PASSWORD; }
            set { _PASSWORD = value; }
        }

        ///<summary>
        ///管理员类型
        ///</summary>
        public string TYPE
        {
            get { return _TYPE; }
            set { _TYPE = value; }
        }

        ///<summary>
        ///最后登陆IP
        ///</summary>
        public string IP
        {
            get { return _IP; }
            set { _IP = value; }
        }

        ///<summary>
        ///注册时间
        ///</summary>
        public DateTime PDATE
        {
            get { return _PDATE; }
            set { _PDATE = value; }
        }

        #endregion

    }
}
